package com.hanamaki.study.day01;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class FireFoxDriverTest {

    public static void main(String[] args) {


        //注册本地火狐打开的位置
        System.setProperty("webdriver.gecko.driver", "C:\\Program Files\\Mozilla Firefox\\geckodriver.exe");

        //注册驱动
        WebDriver driver;

        //初始化
        driver = new FirefoxDriver();

        driver.get("https://www.baidu.com");

        driver.findElement(By.id("kw")).sendKeys("hello");
        driver.findElement(By.id("su")).click();

    }
}
